/**
 * @(#)ICodeManage.java 08/01/2013
 *
 * Copyright (c) 2013 S9,Inc.All rights reserved.
 * Created by 2013-08-01 
 */
package cn.jdy.authority.entity;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.io.Serializable;

/**
 * 用户角色关系实体类
 *
 * @author: zhangli
 * @date: 2013-8-1
 */
@Entity
public class UserRole implements Serializable {

	private static final long serialVersionUID = 1L;
	@Id
	// 设置为主键
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid.hex")
	@Column(length = 32)
	public String id; // 关系标识
	public String roleid; // 角色标识
	public String userid; // 操作员标识

	public UserRole() {
	}

	public UserRole(String roleid, String userid) {
		super();
		this.roleid = roleid;
		this.userid = userid;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getRoleid() {
		return roleid;
	}

	public void setRoleid(String roleid) {
		this.roleid = roleid;
	}

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

}
